﻿@model IEnumerable<eduscrum.ViewModels.PhaseVM>
@using eduscrum.ViewModels;
@{
    var vd = new ViewDataDictionary(this.ViewData);
}
<h2>Phases</h2>
<table id="tbl_phases">
    @foreach (var item in Model)
    {
        Html.RenderPartial("~/Views/Phase/Edit.cshtml", item, vd );
    }
    @{
        Html.RenderPartial("~/Views/Phase/Create.cshtml", new PhaseVM { Project = (ProjectVM) ViewData["Project"] }, vd);
    }
</table>
